using System;
using System.Collections.Generic;
using System.Text;

namespace Qibla
{
    public class CoordinateRecievedArg
    {
        public CoordinateRecievedArg ()
	    {
            _lattitude = 0;
            _longitude = 0;
            _numberOfSattelitesInView = 0;
            _numberOfSattelites = 0;
	    }

        private double _longitude;

        public double Longitude
        {
            get { return _longitude; }
            set { _longitude = value; }
        }

        private double _lattitude;

        public double Lattitude
        {
            get { return _lattitude; }
            set { _lattitude = value; }
        }

        private double _numberOfSattelites;

        public double NumberOfSattelites
        {
            get { return _numberOfSattelites; }
            set { _numberOfSattelites = value; }
        }

        private double _numberOfSattelitesInView;

        public double NumberOfSattelitesInView
        {
            get { return _numberOfSattelitesInView; }
            set { _numberOfSattelitesInView = value; }
        }

        public double SatteliteRatio
        {
            get
            {
                try
                {
                    if (_numberOfSattelitesInView == 0)
                    {
                        return 0;
                    }
                    return _numberOfSattelites / _numberOfSattelitesInView;
                }
                catch
                {
                    return 0;
                }
            }
        }
    }
}
